//函子
class Container{
    static of(value){
        return new Container(value)
    }
    constructor(value){
        this._value=value
    }
    map(fn){
        return  Container.of(fn(this._value))
    }
}
let hanzi=Container.of(20);
let value=hanzi.map((item)=>{
    return item*item
})
console.log(value)
